home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- Newsgroups: comp.lang.c
- Subject: Re: Can I assume the FIRST field of a STRUCT is at OFFSET 0?
- Message-ID: <danpop.823790881@rscernix>
- From: danpop@mail.cern.ch (Dan Pop)
- Date: 8 Feb 96 14:48:01 GMT
- References: <KIN.96Feb7142238@sampras.isi.com>
- Organization: Air Force Flight Test Center
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <KIN.96Feb7142238@sampras.isi.com> kin@isi.com (Kin Cho) writes:
-
- >Is this specified one way or the other in ANSI C?
- >Have you run into a platform where this assumption fails?
-
- The first member of a structure is _always_ at offset 0.
- This is required by the standard.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-